#include "global_config.h"

bool CGlobalConfig::LoadFromFile() {
	
	Json::Value tmp_json = ReadJsonFile("config/global_config.json");

	Json::Value dis_function_json = tmp_json["dis_function"];
	if (dis_function_json != Json::nullValue)
	{
		dis_funcion = dis_function_json;
	}
	
	return true;
}

const Json::Value CGlobalConfig::GetDisFunction() {
	return dis_funcion;
}